<template>
  <div>
    <!-- 使用全局组件 -->
    <v-title></v-title>
    <v-list></v-list>
    <p>price: {{ toFixed(3000) }}</p>
  </div>
</template>

<script setup>
    //1.引入
    import {getCurrentInstance} from "vue"
    import {$imgUrl,toFixed} from "@/utils/index.js"
    //2.获取到proxy
    let {proxy} = getCurrentInstance();
    //3.通过proxy获取原型上的东西
    console.log(proxy.$baseUrl); //http://localhost:3000

    console.log($imgUrl);
</script>

<style>

</style>